const path = require('path');

function resolve(dir) {
	return path.join(__dirname, dir);
}
console.log('打印***process.env.BASE_URL', process.env.BASE_URL);

module.exports = {
	// 设置相对路径
	publicPath: process.env.BASE_URL,
	// 关闭eslint
	lintOnSave: false,
	configureWebpack: {
		// provide the app's title in webpack's name field, so that
		// it can be accessed in index.html to inject the correct title.
		resolve: {
			alias: {
				'@': resolve('src')
			}
		}
	}
};
